<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
	<script src="./js/vue.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
    <div id="app">
        <div @click='divClick' style='height: 200px;background-color: red;'>
            <button @click.stop='btnClick'>点击</button>
        </div>
    </div>
    
    <script>
        new Vue({
            el: '#app',
            methods: {
                btnClick() {
                    console.log('btn click')
                },
                divClick() {
                    console.log('div click')
                }
            }
        })
    </script>
</body>

</html>